package com.racedepartment.model;

public class Profil extends Model {

	private int profil_sk;
	private String name;
	
	public static final String TABLE_NAME = "PROFIL";
	public static final String PROFIL_SK = "PROFIL_SK";
	public static final String NAME = "NAME";
	public static final String[] FIELDS = {PROFIL_SK, NAME};
	public static final int[] DATATYPES = {DATATYPE_INT, DATATYPE_TEXT};
	
	/**
	 * @param name
	 */
	public Profil(String name) {
		super();
		profil_sk = -1;
		this.name = name;
	}
	
	/**
	 * @param profil_sk
	 * @param name
	 */
	public Profil(int profil_sk, String name) {
		super();
		this.profil_sk = profil_sk;
		this.name = name;
	}
	/**
	 * @return the profil_sk
	 */
	public int getProfil_sk() {
		return profil_sk;
	}
	/**
	 * @param profil_sk the profil_sk to set
	 */
	public void setProfil_sk(int profil_sk) {
		this.profil_sk = profil_sk;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String[] getValues() {
		String[] values = new String[2];
		values[0] = new Integer (getProfil_sk()).toString();
		values[1] = getName();
		return values;
	}
	@Override
	public String[] getFields() {
		return FIELDS;
	}
	@Override
	public int[] getDataTypes() {
		return DATATYPES;
	}
	
	
	
	
}
